#!/bin/bash
echo "将project name和path成对提取打印到文本中，project name和path之间保留一个空格。"
grep "<project" ../ohos.xml  |awk -F"\"" '{print $2,$4}' > target.txt

#echo "目标文本已经生成在target.txt中"
echo "$(cat target.txt)"
echo "目标文本已经生成在target.txt中"
